﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using AppConfigurationMVC.Models;

namespace AppConfigurationMVC.Controllers
{
    public class ConfigController : Controller
    {
        //
        // GET: /AppConfig/

        public ActionResult Index()
        {
            AppConfigurationDataAccess dao = new AppConfigurationDataAccess();

            var model = dao.GetConfig();

            return View(model);
        }

        public ActionResult Create()
        {
            ViewBag.Message = "Create new config item here";
            return View();
        }
    }
}
